<div class="panel panel-primary">
	<!-- Default panel contents -->
	<div class="panel-heading">Edit Topic</div>
	<div class="panel-body">

		<form method="POST" role="form" action="community.php" id="edit-topic-form" name="edittopic">
			<input type="hidden" name="txtUpdateTopicID" class="span4 form-control input-sm" id="txtUpdateTopicName" placeholder="Name" maxlength="45" value="<?php if(isset($updateTopicID) && !empty($updateTopicID)){echo $updateTopicID;} ?>"/>
			<div>
				<div class="form-group">
					<label for="txtNewTopicName">Topic Name</label>
					<div class="input-group input-group-sm">
						<span class="input-group-addon">
							<i class="glyphicon glyphicon-list-alt"></i>
						</span>	
						<input type="text" name="txtUpdateTopicName" class="span4 form-control input-sm" id="txtUpdateTopicName" placeholder="Name" maxlength="45" value="<?php if(isset($updateTopicName) && !empty($updateTopicName)){echo $updateTopicName;} ?>"/>
					</div>
				</div>
			</div>
			
			<div>
				<div class="form-group">
					<label for="txtNewTopicDescription">Topic Description</label>
					<div class="input-group input-group-sm">
						<span class="input-group-addon">
							<i class="glyphicon"></i>
						</span>	
						<textarea rows="10" cols="75" class="form-control input-sm span6" name="txtUpdateTopicDescription" id="txtUpdateTopicDescription" size="300" placeholder="Describe this new topic"><?php if(isset($updateTopicDescription) && !empty($updateTopicDescription)){echo $updateTopicDescription;} ?></textarea>
					</div>
				</div>
			</div>
			
			<div class="form-group">
				<div>
					<label for="btnUpdateTopic" class="btn btn-primary "><i class="glyphicon glyphicon-edit"></i> Update</label>
					<input type="submit" class="btn btn-primary hidden" id="btnUpdateTopic" name="btnUpdateTopic" value="Update">
				</div>
			</div>
			
			<div>
				<?php

				?>
			</div>
		</form>
	</div>
</div>